package cn.edu.hubu.hubusmartzoohouse.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 实体类
 * 1.实体类中属性的个数和类型要与对应的数据表保持一致
 * 2.提供所有属性的get和set，添加@Data注解
 * 3.添加无参构造器，添加@NoArgsConstructor
 * 4.添加全参构造器，添加@AllArgsConstructor
 * 5.重写ToString()方法
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class User {
//    user_id	int
//    login_account	varchar
//    login_pwd	varchar
//    user_name	varchar
//    user_gender	varchar
//    user_tel	char
//    user_age	int
//    user_idcard	varchar
//    user_img	varchar
//    user_remark	varchar

    private int userId;
    private String loginAccount;
    private String loginPwd;
    private String userName;
    private String userGender;
    private String userTel;
    private int userAge;
    private String userIdCard;
    private String userImg;
    private String userRemark;
}
